import request from '@/utils/request'
export function addStockRight(params) {
  return request({
    url: '/admin/stockRight/addStockRight',
    method: 'post',
    params: params
  })
}
export function list(params) {
  return request({
    url: '/admin/member/list',
    method: 'get',
    params: params
  })
}
export function save(params, data) {
  return request({
    url: '/admin/member/save',
    method: 'post',
    params: params,
    data: data
  })
}

export function find(id) {
  return request({
    url: '/admin/member/find/' + id,
    method: 'get'
  })
}

export function update(data) {
  return request({
    url: '/admin/member/update',
    method: 'post',
    data: data
  })
}

export function updateMember(data) {
  return request({
    url: '/admin/member/updateMember',
    method: 'post',
    data: data
  })
}

export function del(ids) {
  return request({
    url: '/admin/member/del/' + ids,
    method: 'post'
  })
}
export function summary(params) {
  return request({
    url: '/admin/member/summary',
    method: 'get',
    params: params
  })
}

export function deposit(params) {
  return request({
    url: '/admin/deposit/list',
    method: 'get',
    params: params
  })
}

export function point(params) {
  return request({
    url: '/admin/point/list',
    method: 'get',
    params: params
  })
}

export function receiver(params) {
  return request({
    url: '/admin/receiver/list',
    method: 'get',
    params: params
  })
}

export function receiverDel(id) {
  return request({
    url: '/admin/receiver/del/' + id,
    method: 'post'
  })
}


export function transfer(params) {
  return request({
    url: '/admin/member/transfer',
    method: 'post',
    params: params
  })
}
export function bindEmployee(params) {
  return request({
    url: '/admin/member/bindEmployee',
    method: 'get',
    params: params
  })
}
